package com.k3cloud.service.impl;


import com.k3cloud.base.dto.ProjectCodeDTO;
import com.k3cloud.mapper.ProjectCodeMapper;
import com.k3cloud.service.ProjectCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service
public class ProjectCodeServiceImpl implements ProjectCodeService {

    @Autowired
    ProjectCodeMapper projectCodeMapper;

    @Override
    public int insertProjectCode(ProjectCodeDTO projectCodeDTO) {
        return projectCodeMapper.insertProjectCode(projectCodeDTO);
    }

    @Override
    public Map<String,Object> existsByProjectYear(Map<String,Object> map) {
        return projectCodeMapper.existsByProjectYear(map);
    }

    @Override
    public ProjectCodeDTO queryProjectCodeByProjectName(String projectName) {
        return projectCodeMapper.queryProjectCodeByProjectName(projectName);
    }
}
